<?php
/* @var $this FullRoutingController */
/* @var $model FullRouting */
/* @var $form CActiveForm */
?>

<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>


	<div class="row">
		<?php echo $form->labelEx($model,Yii::t('base','Server')); ?>
		<?php echo $form->dropDownList($model, 'vpnlist_id',FullRouting::model()->chooseServer(Yii::app()->user->id));?>
	</div>

	<div class="row">
		<?php echo $form->label($model,Yii::t('base','Open Time')); ?>
		<?php echo $form->textField($model,'open_time',array('value'=>date("Y-m-d"),'onClick'=>"WdatePicker({startDate:'%y-%M-01',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true})",'class'=>"Wdate")); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,Yii::t('base','Mark')); ?>
		<?php echo $form->dropDownList($model,'mark',array(0=>Yii::t('base','Open Mark'),1=>Yii::t('base','Close Mark')));?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton(Yii::t('base','search')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->